package com.springcloud.music.demo.controller;

import com.springcloud.music.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ Author      : cyw
 * @ Date        : created in  下午11:14 2021/4/21
 * @ Description :
 * @ Modified By :
 * @Version : $
 */
@RestController
public class UserController {
    @Autowired
    private UserService userService;
    @GetMapping("/user-service/comment")
    public Object allComment(){
        return userService.allComment();
    }

    @GetMapping("/user-service/collection")
    public Object allCollection() {
        return userService.allCollection();
    }

}
